package com.cms.recursoshumanos.facade;

import com.cms.recursoshumanos.constant.Constant;
import com.cms.recursoshumanos.handler.WServiceCall;
import com.cms.recursoshumanos.json.me.JSONParser;
import com.cms.recursoshumanos.json.object.JsonObjectGetFamiliar;

public class ListaFamiliarActivityFacade
{

	private String strUsername;
	private String strPass;

	
	public ListaFamiliarActivityFacade(	String user,
										String password)
	{
		this.strUsername = user;
		this.strPass = password;
		
	}

	public String enviarSolicitud()
	{
		 
		JSONParser jParser = new JSONParser();
		return setValores(jParser.
						getJSONFromUrl(
								Constant.URL_WEBSERVICE, 
								WServiceCall.getInstance().getListaFamiliar(strUsername, strPass)));

	}
	
	public String setValores(String strResult)
	{
		JsonObjectGetFamiliar.getInstance().fromJSON(strResult);
		return JsonObjectGetFamiliar.getInstance().getResult();
		
	}

	
	
	
}
